package com.zbf.auth.web;

import com.zbf.auth.denglu.MyAuthentacationProvider;
import com.zbf.auth.mapper.SendCode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName SmsController
 * @Description TODO 发送短信验证的类
 * @Author wangfa
 * @Date 2020/9/11 9:05
 */

@RestController
public class SmsController {

    @Autowired
    private SendCode sendCode;

    @RequestMapping("/yan")
    public boolean sendcode(String tel){
        System.out.println(tel);
        boolean b = sendCode.yanzheng(tel);
        return b;
    }



}
